import request from '@/utils/request'

export function getUserDeptTree() {
  return request({
    url: '/ognizational/getUserDept',
    method: 'get'
  })
}

export function getUserProject(userId) {
  return request({
    url: '/oa/getUserProject',
    method: 'get',
    params: { userId }
  })
}

export function getProjectList() {
  return request({
    url: '/erp/project/projectList',
    method: 'get'
  })
}

export function getUserTask(projectId) {
  return request({
    url: '/oa/getUserTask',
    method: 'get',
    params: { projectId }
  })
} 